package com.xiaode.controller.admin.face;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import com.jfinal.aop.Inject;
import com.jfinal.core.Controller;
import com.jfinal.core.Path;
import com.jfinal.kit.Ret;
import com.xiaode.common.anotation.Authority;
import com.xiaode.util.apidoc.annotation.Api;
import com.xiaode.util.apidoc.annotation.ApiOper;
import com.xiaode.util.apidoc.annotation.ApiPara;

/**
 * 人脸管理
 */
@Path("/aUserFace")
@Api("人脸管理")
public class UserFaceController extends Controller {
	
	 @Inject
	 private UserFaceService service;
	 
	 /**
	  * 人脸数据列表
	  */
	 @ApiOper("人脸数据列表")
	 @Authority(description = "人脸数据列表", permission = "admin:aUserFace:getFacePage", permissionParentName = "用户人脸模块", permissionName = "人脸管理", type = 1)
	 public void getFacePage(
			 @ApiPara(value = "grade", notes = "年级")Integer grade,
			 @ApiPara(value = "clasId", notes = "班级")Integer clasId,
			 @ApiPara(value = "examineState", notes = "审核状态")Integer examineState,
			 @NotEmpty @Size(min = 0) @ApiPara(value = "page", notes = "当前页") Integer page, 
			 @NotEmpty @Size(min = 0) @ApiPara(value = "limit", notes = "每页大小") Integer limit) throws Exception{
		 Ret ret = service.getFacePage(grade, clasId, examineState, page, limit);
		 renderJson(ret);
	 }
	 
	 
	 
	 
	 
	 
	 
}
